<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<html ng-app="payApp">
<head>
<meta charset="UTF-8" />
<title>支付测试系统</title>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>

</head>
<body>
	<center>
		<h1>支付测试系统</h1>
	</center>
	<hr>
	<center>
		<div>
			支付金额：<input type="number" id="money"><br> 付款方式：<input
				type="radio" value="zhifubao" name="payWay" checked="checked">支付宝
			<input type="radio" value="weixin" name="payWay">微信<br>
			<input type="button" value="支付" onclick="gotoPay();">
		</div>

		<div id="zfb"></div>
	</center>
	<script type="text/javascript">
		function gotoPay() {
			$.post("gotoPay", {
				money : $("#money").val(),
				payWay : $("input[name='payWay']:checked").val(),
			}, function(result) {
				$("#zfb").html(result);
			});

		}
	</script>
</body>
</html>